package com.gusha.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.*;
import org.hibernate.annotations.DynamicInsert;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @Created：2018-10-26 15:18:16
 * @Author LightSound的代码生成器
 * @Description:ConfigSalesman实体类
 */
@Entity
@Table(name="config_salesman")
@NamedQuery(name="ConfigSalesman.findAll", query="SELECT s FROM ConfigSalesman s")
@DynamicInsert
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ConfigSalesman implements Serializable {

    private static final long serialVersionUID = 1L;
    
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)    
    private BigInteger id;
    
    /**
            职称
     */
    @Column(name="title")
    private String title;
    
    /**
            季度新增客户
     */
    @Column(name="add_customer")
    private BigDecimal addCustomer;
    
    /**
            个人业绩
     */
    @Column(name="achievement")
    private BigDecimal achievement;
    
    /**
            创建时间
     */
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="create_time")
    private Date createTime;
    
    /**
            更新时间
     */
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="update_time")
    private Date updateTime;
    
    /**
            创建人
     */
    @Column(name="creator")
    private String creator;
    
    /**
            更新人
     */
    @Column(name="updator")
    private String updator;
    
	/**
    0未删 1已删
	*/
	@Column(name="is_delete")
	private Integer isDelete;

	public BigInteger getId() {
		return id;
	}

	public void setId(BigInteger id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public BigDecimal getAddCustomer() {
		return addCustomer;
	}

	public void setAddCustomer(BigDecimal addCustomer) {
		this.addCustomer = addCustomer;
	}

	public BigDecimal getAchievement() {
		return achievement;
	}

	public void setAchievement(BigDecimal achievement) {
		this.achievement = achievement;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getUpdator() {
		return updator;
	}

	public void setUpdator(String updator) {
		this.updator = updator;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
